package com.example.designPatten.factory.staticFactory;

/**
 * Created by com on 16/3/22.
 */
public class PizzaStore {

    public Pizza orderPizza(String type){
        Pizza pizza;
        pizza =PizzaFactory.createPizza(type);

        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

        return pizza;
    }

}
